//别的地址可以封装的也可以写到这，这里是全局变量
export const Path = {
  //社区跳转路径
  communityPath: "/community",
  //imgPath: "http://10.25.128.143:9000/goods",
  //这里是咱们的minio图片的服务器前缀地址
  imgPath: "http://localhost:9009",

  // 首页秒杀商品路径
  goodsRecommend: "/goods/getRecommend",
  goodsLowPrice: "/goods/getLowPrice",

  // 报修模块
  repairAdd: "/repair/add",
  repairGetByUid: "/repair/getByUid",

  // 公告模块
  noticeGetById: "/notice/getById",
  noticeGetByUid: "/notice/getByUid",

  // 访客模块
  visitorAdd: "/visitor/add",
  visitorGetByUid: "/visitor/getByUid",

  // 这块是商城主页模块
  goodsList: "/goods/listNoPage",

  // 地址模块
  addressList: "/address/listByUid",
  addressAdd: "/address/addAddress",
  addressUpdate: "/address/updateAddress",
  addressSetDefault: "/address/setDefault",
  addressDelete: "/address/deleteAddress",

  // 车位模块
  parkingSpaceList: "/parkingSpace/getTargetList",
  parkingSpaceChangeState: "/parkingSpace/updateState",
  parkingSpaceGetMySpace: "/parkingSpace/getMySpace",

  // 投诉建议模块
  complainAdd: "/complains/add",

  // 注册发送验证码
  emailCheck: "/user/check", // 发送验证码之前先进行邮箱的校验，看邮箱是否已经被使用过
  sendEmail: "/user/sendemail",
  // 用户注册模块
  registration: "/user/registration",
  // 用户注册后完善个人信息
  completeInformation: "/user/completeInformation",
  // 查看手机号是否可用
  checkPhone: "/user/checkNull",
  // 检查手机号是否可用
  phoneCheck: "/user/checkUser",
  // 用户登入模块
  login: "/user/login",
  // 用户忘记密码
  fixPassword: "/user/fixPassword",
  // 通过ID获取用户,获取在线用户
  getUserById: "/user/getNowUser",
  // 用户充值模块
  userRecharge: "/user/recharge",
  // 用户个人信息修改
  userUpdate: "/user/completeInformation",
  // 用户修改密码
  userFixPassword: "/user/fixPassword",

  // 购物车模块
  cartAdd: "/cart/add", // 添加商品到购物车中
  cartGetByUid: "/cart/getByUid", // 获取用户的购物车
  cartDeleteById: "/cart/deleteById", // 删除购物车中的记录

  // 生成订单模块
  orderCreate: "/orders/createOrder",
  // 获取订单模块
  orderGoodsGet: "/orderGoods/getOrders",
  // 商家获取订单
  getOrdersByCid: "/orderGoods/getOrdersByCid",
  // 付款模块
  userGetAccount: "/user/getNowUser",
  userTrade: "/orderGoods/trade",
  orderGoodsChangeState: "/orderGoods/changeState",
  // 获取当前商品数量
  getGoodsStore: "/goods/getStore",
  // 删除订单
  orderDelete: "/orderGoods/delete",

  // 增加商品浏览量
  goodsIncreaseBrowse: "/goods/increaseBrowse",

  // 商户端管理商品
  businessGetGoods: "/goods/getPage",
  businessUpdateGoodsState: "/goods/updateState",
  businessUpdateGoodsStateBatch: "/goods/updateStateForBatch",
  categoryList: "/category/list", // 获取商品分类
  businessDeleteGoods: "/goods/del", // 永久删除商品
  getGoodById: "/goods/getByIdAll",
  updateGoods: "/goods/update",

  // 初始化商店
  createShop: "/shop/create",
  getShopInfoById: "/shop/getShopInfoById",
  updateShopInfo: "/shop/update",
  addGoods: "/goods/add", // 添加商品

  // 获取消费日志
  clogList: "/consumptionLogs/listNoPage",
};
//write by wzy
